/**
 * 
 */
package cn.biplam.front.template.main;

import cn.biplam.common.wrapper.ErrorMessage;
import cn.biplam.front.html.HtmlPage;
import cn.biplam.front.html.base.HtmlMeta;
import cn.biplam.front.html.base.HtmlMeta.Templet_Type;
import cn.biplam.front.htmlscript.HtmlScript;
import cn.biplam.front.htmlstyle.HtmlStyle;

/**
 * 页面导入模板(传入HtmlPage模板)
 * @author 	WangSong
 * @create 	2009-4-17 上午08:31:01
 * @version 1.0
 */
public class MainImport {
	
	public void get(HtmlPage page,String sHomeUrl) throws ErrorMessage{
		page.importMeta(new HtmlMeta(Templet_Type.Templet_Charset));
		page.importMeta(new HtmlMeta(Templet_Type.Templet_NoCach));//用于防止页面后退后再回来时不刷新页面
		page.importMeta(new HtmlMeta(Templet_Type.Templet_Author));
		page.importScript(new HtmlScript("/Js/default.js",sHomeUrl));
		page.importScript(new HtmlScript("/Js/ajx.js",sHomeUrl));
		page.importScript(new HtmlScript("/Js/cover.js",sHomeUrl));
		page.importScript(new HtmlScript("/Js/tree.js",sHomeUrl));
		page.importScript(new HtmlScript("/Js/calendar.js",sHomeUrl));
		page.importScript(new HtmlScript("/Js/rge.js",sHomeUrl));//规则引擎脚本
		page.importScript(new HtmlScript("/Js/upload.js",sHomeUrl));
		page.importStyle(new HtmlStyle("/Css/default.css",sHomeUrl));

	}

}
